package com.gupao.pattern.singleton.Lazy;

/**
 * 懒汉优化版
 */
public class LasyTwo {


    private LasyTwo(){}

    private static LasyTwo lazyTwo = null;

    public static synchronized LasyTwo getInstace(){

        if (lazyTwo == null ){

            lazyTwo = new LasyTwo();
        }

        return lazyTwo;
    }


}
